package com.ambow.restaurant.app.po;

import java.util.Date;
import java.util.List;

import com.ambow.restaurant.app.po.OrderDetail;

public class Order {
	private Integer id;
	private String Order_code;
	private Double Totalprice;
	private Integer Status;
	private Date Order_time;
	private Date Pay_time;
	private Date Update_time;
	private Integer Disabled;
	private Integer userID;
	private List<OrderDetail> orderDetail;
	public Order() {
		super();
	}
	public Order(String order_code, Double totalprice, Integer status, Date order_time, Date pay_time, Date update_time,
			Integer disabled, Integer userID) {
		super();
		this.Order_code = order_code;
		this.Totalprice = totalprice;
		this.Status = status;
		this.Order_time = order_time;
		this.Pay_time = pay_time;
		this.Update_time = update_time;
		this.Disabled = disabled;
		this.userID = userID;
	}
	public Order(Integer id, String order_code, Double totalprice, Integer status, Date order_time, Date pay_time,
			Date update_time, Integer disabled, Integer userID) {
		super();
		this.id = id;
		this.Order_code = order_code;
		this.Totalprice = totalprice;
		this.Status = status;
		this.Order_time = order_time;
		this.Pay_time = pay_time;
		this.Update_time = update_time;
		this.Disabled = disabled;
		this.userID = userID;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getOrder_code() {
		return Order_code;
	}
	public void setOrder_code(String order_code) {
		this.Order_code = order_code;
	}
	public Double getTotalprice() {
		return Totalprice;
	}
	public void setTotalprice(Double totalprice) {
		this.Totalprice = totalprice;
	}
	public Integer getStatus() {
		return Status;
	}
	public void setStatus(Integer status) {
		this.Status = status;
	}
	public Date getOrder_time() {
		return Order_time;
	}
	public void setOrder_time(Date order_time) {
		this.Order_time = order_time;
	}
	public Date getPay_time() {
		return Pay_time;
	}
	public void setPay_time(Date pay_time) {
		this.Pay_time = pay_time;
	}
	public Date getUpdate_time() {
		return Update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.Update_time = update_time;
	}
	public Integer getDisabled() {
		return Disabled;
	}
	public void setDisabled(Integer disabled) {
		this.Disabled = disabled;
	}
	public Integer getUserID() {
		return userID;
	}
	public void setUserID(Integer userID) {
		this.userID = userID;
	}

	public List<OrderDetail> getOrderDetail() {
		return orderDetail;
	}
	public void setOrderDetail(List<OrderDetail> orderDetail) {
		this.orderDetail = orderDetail;
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", Order_code=" + Order_code + ", Totalprice=" + Totalprice + ", Status=" + Status
				+ ", Order_time=" + Order_time + ", Pay_time=" + Pay_time + ", Update_time=" + Update_time
				+ ", Disabled=" + Disabled + ", userID=" + userID + "]";
	}
	
	
}
